\section{datagram\+\_\+pair.\+h File Reference}
\label{datagram__pair_8h}\index{datagram\+\_\+pair.\+h@{datagram\+\_\+pair.\+h}}


Ether\+C\+AT datagram pair structure.  


\subsection*{Data Structures}
\begin{DoxyCompactItemize}
\item 
struct \textbf{ ec\+\_\+datagram\+\_\+pair\+\_\+t}
\begin{DoxyCompactList}\small\item\em Domain datagram pair. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
int \textbf{ ec\+\_\+datagram\+\_\+pair\+\_\+init} (\textbf{ ec\+\_\+datagram\+\_\+pair\+\_\+t} $\ast$, \textbf{ ec\+\_\+domain\+\_\+t} $\ast$, uint32\+\_\+t, uint8\+\_\+t $\ast$, size\+\_\+t, const unsigned int [$\,$])
\begin{DoxyCompactList}\small\item\em Datagram pair constructor. \end{DoxyCompactList}\item 
\mbox{\label{datagram__pair_8h_ac3ff7374f362ab7e2990346186202b71}} 
void \textbf{ ec\+\_\+datagram\+\_\+pair\+\_\+clear} (\textbf{ ec\+\_\+datagram\+\_\+pair\+\_\+t} $\ast$)
\begin{DoxyCompactList}\small\item\em Datagram pair destructor. \end{DoxyCompactList}\item 
uint16\+\_\+t \textbf{ ec\+\_\+datagram\+\_\+pair\+\_\+process} (\textbf{ ec\+\_\+datagram\+\_\+pair\+\_\+t} $\ast$, uint16\+\_\+t[$\,$])
\begin{DoxyCompactList}\small\item\em Process received data. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Ether\+C\+AT datagram pair structure. 



\subsection{Function Documentation}
\mbox{\label{datagram__pair_8h_ad68c9cbef047c62f692646025db09f80}} 
\index{datagram\+\_\+pair.\+h@{datagram\+\_\+pair.\+h}!ec\+\_\+datagram\+\_\+pair\+\_\+init@{ec\+\_\+datagram\+\_\+pair\+\_\+init}}
\index{ec\+\_\+datagram\+\_\+pair\+\_\+init@{ec\+\_\+datagram\+\_\+pair\+\_\+init}!datagram\+\_\+pair.\+h@{datagram\+\_\+pair.\+h}}
\subsubsection{ec\+\_\+datagram\+\_\+pair\+\_\+init()}
{\footnotesize\ttfamily int ec\+\_\+datagram\+\_\+pair\+\_\+init (\begin{DoxyParamCaption}\item[{\textbf{ ec\+\_\+datagram\+\_\+pair\+\_\+t} $\ast$}]{pair,  }\item[{\textbf{ ec\+\_\+domain\+\_\+t} $\ast$}]{domain,  }\item[{uint32\+\_\+t}]{logical\+\_\+offset,  }\item[{uint8\+\_\+t $\ast$}]{data,  }\item[{size\+\_\+t}]{data\+\_\+size,  }\item[{const unsigned int}]{used[$\,$] }\end{DoxyParamCaption})}



Datagram pair constructor. 

\begin{DoxyReturn}{Returns}
Zero on success, otherwise a negative error code. 
\end{DoxyReturn}

\begin{DoxyParams}{Parameters}
{\em pair} & Datagram pair. \\
\hline
{\em domain} & Parent domain. \\
\hline
{\em logical\+\_\+offset} & Logical offset. \\
\hline
{\em data} & Data pointer. \\
\hline
{\em data\+\_\+size} & Data size. \\
\hline
{\em used} & input/output use count. \\
\hline
\end{DoxyParams}


Definition at line 48 of file datagram\+\_\+pair.\+c.

\mbox{\label{datagram__pair_8h_a58f5dc413c70031fda65e18fe696682b}} 
\index{datagram\+\_\+pair.\+h@{datagram\+\_\+pair.\+h}!ec\+\_\+datagram\+\_\+pair\+\_\+process@{ec\+\_\+datagram\+\_\+pair\+\_\+process}}
\index{ec\+\_\+datagram\+\_\+pair\+\_\+process@{ec\+\_\+datagram\+\_\+pair\+\_\+process}!datagram\+\_\+pair.\+h@{datagram\+\_\+pair.\+h}}
\subsubsection{ec\+\_\+datagram\+\_\+pair\+\_\+process()}
{\footnotesize\ttfamily uint16\+\_\+t ec\+\_\+datagram\+\_\+pair\+\_\+process (\begin{DoxyParamCaption}\item[{\textbf{ ec\+\_\+datagram\+\_\+pair\+\_\+t} $\ast$}]{pair,  }\item[{uint16\+\_\+t}]{wc\+\_\+sum[$\,$] }\end{DoxyParamCaption})}



Process received data. 

\begin{DoxyReturn}{Returns}
Working counter sum over all devices. 
\end{DoxyReturn}

\begin{DoxyParams}{Parameters}
{\em pair} & Datagram pair. \\
\hline
{\em wc\+\_\+sum} & Working counter sums. \\
\hline
\end{DoxyParams}


Definition at line 176 of file datagram\+\_\+pair.\+c.

